package com.mgg.user;

import com.mgg.common.messaging.RegistShopkeeperProcessor;
import com.mgg.common.messaging.UserRegisterProcessor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan(basePackages = {"com.mgg"})
@EnableFeignClients(basePackages = {"com.mgg.common.client.**"})
@EnableEurekaClient
@SpringBootApplication
@EnableBinding({RegistShopkeeperProcessor.class,UserRegisterProcessor.class})
public class UserApiApplication {

	public static void main(String[] args) {
		SpringApplication.run(UserApiApplication.class, args);
	}
}
